//
//  ShouHuoAddressTableViewCell.m
//  JiuJiuShangCheng
//
//  Created by jiujiukeji on 2018/7/13.
//  Copyright © 2018年 jiujiukeji. All rights reserved.
//

#import "ShouHuoAddressTableViewCell.h"

@implementation ShouHuoAddressTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self setUpUI];
    }
    return self;
}
- (void)setUpUI
{
    WeakSelf
    self.addressImg = [[UIImageView alloc] init];
    _addressImg.image = UIImageNamed(@"zuobiaoimg");
    [_addressImg sizeToFit];
    [self addSubview:_addressImg];
    [_addressImg mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self).offset(rateWidth(28));
        make.top.equalTo(self).offset(rateHeight(24));
    }];
    
    self.contactInfoLB = [UILabel labelWithText:@"收货人：张先生     18330695172" textColor:UIColorFromRGB(0x3b3b3b) fontSize:13];
    [self.contactInfoLB sizeToFit];
    [self addSubview:self.contactInfoLB];
    [_contactInfoLB mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerY.equalTo(weakSelf.addressImg);
        make.left.equalTo(weakSelf.addressImg.mas_right).offset(rateWidth(20));
    }];
    
    self.addressLB = [UILabel labelWithText:@"地址：天津市东丽区津滨大道旁" textColor:UIColorFromRGB(0x909090) fontSize:13];
    [_addressLB sizeToFit];
    _addressLB.numberOfLines = 0;
    [self addSubview:_addressLB];
    [_addressLB mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(weakSelf.contactInfoLB);
        make.top.equalTo(weakSelf.contactInfoLB.mas_bottom).offset(rateHeight(20));
    }];
    
}

@end
